﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FXnaInfrastructure;


using GWModflow.FileLayers;



namespace GWModflow
{
    [Serializable]
   public class RiverColletion:SSCollection
    {

        public RiverColletion(ModflowModel model):base(model)
        {


          

 
        }




        public override void WriteFile(string fname)
        {
            base.WriteFile(fname);

            //PRiver p = new PRiver();

            //p.MXACT = this._innerList.Count;

            ////p.IRIVCB = 0;

            //for (int i = 0; i < this.NPeriods; i++)
            //{
            //    SPRiver sp = new SPRiver();


            //    if (i == 0)
            //    {
            //        sp.ITMP = this._innerList.Count;

            //        foreach (River item in this._innerList)
            //        {
            //            GPointValue pv = new GPointValue(item.K, item.I, item.J, item.Stage[i], item.Conductance[i], item.Elevation[i]);


            //            sp.RiverData.Add(pv);
            //        }


            //    }

            //    else
            //    {
            //        if (this.IsUsePrecious[i] == true)
            //        {
            //            sp.ITMP = -1;

            //        }
            //        else
            //        {

            //            sp.ITMP = this._innerList.Count;

            //            foreach (River item in this._innerList)
            //            {
            //                GPointValue pv = new GPointValue(item.K, item.I, item.J, item.Stage[i], item.Conductance[i], item.Elevation[i]);


            //                sp.RiverData.Add(pv);
            //            }

            //        }
            //    }




            //    p.StressPeriodRiver.Add(sp);




            //}

           



        }







    }
}
